import { GoodsSkuKvs, GoodsMessageItem } from "../model/goods";

/**
 * [API] 新增购物车或数量
 */
export interface ServiceCartAddParams {

  shop_id: number;
  goods_id?: number;
  cart_id: number;
  sku_id?: number;
  num: number;
  kvs: GoodsSkuKvs;
  messages: GoodsMessageItem[];

}

/**
 * [API] 更新购物车数量
 */
export interface ServiceCartUpdateParams {

  action: 'add' | 'remove';
  cart_id: number;
  num: number;
  shop_id: number;

}